package com.example.aistudent.headhunting.controller;

import com.example.aistudent.headhunting.service.AIchatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/api")
public class ChatController {
    @Autowired
    private AIchatService chatService;

    @GetMapping("/AI")
    public String completion(@RequestParam(value = "message") String message) {
        return chatService.completion(message);
    }

}
